#include "Graphics/IDeviceBuffer.h"

namespace tyro
{
	namespace Graphics
	{


		void* IDeviceBuffer::Lock()
		{
			return this->Lock(0, sizeInBytes);
		}

		void* IDeviceBuffer::Lock( size_t offset, size_t length )
		{

			void* retrn; 

			if ( (length + offset) > sizeInBytes)
			{
			}
			else
			{
				retrn = LockImpl(offset, length);
			}


			return retrn;
		}

		void IDeviceBuffer::Unlock( void )
		{
			UnlockImpl();
		}

		

	}
}